package com.love.rongcommon.constant.enums;

import com.love.rongcommon.exception.ErrorEnum;

public enum CommonEnum implements ErrorEnum {
    DATA_ERROR(100000, "数据错误"),
    TOKEN_NOT_EXISTS(100001, "accessToken不存在"),
    ;

    private int code;
    private String message;

    CommonEnum(int code, String message) {
        this.code = code;
        this.message = message;
    }

    @Override
    public int getCode() {
        return this.code;
    }

    @Override
    public String getMsg() {
        return this.message;
    }
}
